package com.wyp.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

//import org.springframework.data.redis.repository.configuration.EnableRedisRepositories;

/***
 * 配置WebMvc信息
 * @author jzze
 * @date
 */

@Configuration
//@EnableRedisRepositories
public class ExamWebConfig extends WebMvcConfigurationSupport {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        /**
         * 配置静态访问资源
         * @param registry
         */
        registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
        super.addResourceHandlers(registry);
    }

}
